package com.ruge.user.service;

import com.ruge.core.response.Response;
import com.ruge.user.domain.request.ListUserRequest;
import com.ruge.user.domain.request.SaveUserRequest;

import java.util.List;

/**
 * @author ruge.wu
 * @since 2021/12/24 13:29
 */
public interface UserService {

    /**
     * 用户数据保存
     *
     * @param request {@link SaveUserRequest}
     * @return {@link Response}
     */
    Response save(SaveUserRequest request);

    /**
     * 用户数据查询
     *
     * @param request {@link ListUserRequest}
     * @return {@link Response}
     */
    Response list(ListUserRequest request);

    /**
     * 校验手机号是否已注册
     *
     * @param mobile 手机号
     * @return {@link Response}
     */
    Response checkPhoneIsRegister(String mobile);
    /**
     * 校验手机号是否已注册
     *
     * @param aid aid
     * @return {@link Response}
     */
    Response getUserInfo(List<Long> aid);
}
